import request from '@/utils/request'

// 查询公寓活动列表
export function listActivities(query) {
  return request({
    url: '/business/activities/list',
    method: 'get',
    params: query
  })
}

// 查询公寓活动详细
export function getActivities(activityId) {
  return request({
    url: '/business/activities/' + activityId,
    method: 'get'
  })
}

// 新增公寓活动
export function addActivities(data) {
  return request({
    url: '/business/activities',
    method: 'post',
    data: data
  })
}

// 修改公寓活动
export function updateActivities(data) {
  return request({
    url: '/business/activities',
    method: 'put',
    data: data
  })
}

// 删除公寓活动
export function delActivities(activityIds) {
  return request({
    url: '/business/activities/' + activityIds,
    method: 'delete'
  })
}

export function updateActivitiesVideo(data) {
  return request({
    url: '/business/activities/uploadActVideo',
    method: 'post',
    data: data
  })
}

export function getActivitiesVideo(data) {
  return request({
    url: '/business/activities/activitiesVideo',
    method: 'post',
    data: data
  })
}


export function activitiesAppproval(data) {
  return request({
    url: '/business/activities/approval',
    method: 'post',
    params: data
  })
}
